#ifndef NETWRITECOMPLETEEVENT_H
#define NETWRITECOMPLETEEVENT_H

#include "room_global.h"
#include "event.h"

class NetWriteCompleteEvent :
        public Event
{
public:
    NetWriteCompleteEvent();
    ~NetWriteCompleteEvent();

    unsigned char *memory();

    unsigned long netKey();

    size_t length();

    size_t dataLength();

    void setDataLength(size_t size);

    void setNetKey(unsigned long netKey);

private:
    unsigned char m_memory[NET_BUFFER_SIZE];

    size_t m_current;

    unsigned long m_netKey;
};

#endif // NETWRITECOMPLETEEVENT_H
